package dataflow.core;

public class SynchroEvent implements IEvent{
	
	private final ConnectionAnchor in;
	private final ConnectionAnchor out;
	
	public SynchroEvent(ConnectionAnchor out, ConnectionAnchor in) {
		this.in = in;
		this.out = out;
	}

	@Override
	public void execute() {
		if(in.pe.receiveSignal(in.portName)){
			out.pe.receiveResponse(EventMsg.delivered_ok, out.portName);
		}
	}
}
